import { get, post } from '@/utils/axios'

const prefixUrl = '/auth/online'

/** 查询当前在线人数 */
export const getOnline = () => {
  return get(`${prefixUrl}`, {
    page: 0,
    size: 10,
    sort: 'id, desc',
    filter: 'wangsh'
  })
}

/** 登录接口 */
export const loginCheck = data => {
  return post(`${prefixUrl}login`, data)
}
